<!DOCTYPE html>
<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<head>
<c:set var="title" value="文章中心" scope="request" />
<jsp:include page="/head.jsp" />
<script type="text/javascript" charset="utf-8"
	src="../ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
	src="../ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
	src="../ueditor/lang/zh-cn/zh-cn.js"></script>
</head>

<body>
	<c:import url="/header.do?full=1" />
	<div class="col-md-2">
		<c:import url="/left-menu.do" />
	</div>
	<div class="col-md-10 news-add">
		<ol class="breadcrumb">
			<li><a href="user.html">文章中心</a></li>
				<li class="active">发表文章</li>
		</ol>
		<div  style="width: 95%;" role="document">
			<div>
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">发表文章</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal form-add" action="news/news-add.do"
						method="post">
						<div class="form-group">
							<label style="width: 100px;" class="col-sm-2 control-label">新闻标题</label>
							<div style="width: calc(100% - 100px);" class="col-sm-10">
								<input type="text" class="form-control" required="required"
									name="newsTitle" value="">
							</div>
						</div>
						<div class="form-group">
							<label style="width: 100px;" class="col-sm-2 control-label">来源</label>
							<div style="width: calc(50% - 100px);" class="col-sm-4">
								<input type="text" required="required" class="form-control"
									name="newsWorker" value="">
							</div>
							<label style="width: 100px;" class="col-sm-2 control-label">类别</label>
							<div style="width: calc(50% - 100px);" class="col-sm-4">
								<select class="form-control" required="required"
									name="newsClassId">
									<option value="">请选择</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label style="width: 100px;" class="col-sm-2 control-label">内容</label>
							<div style="width: calc(100% - 100px);" class="col-sm-10"
								style="text-align: left;">
								<textarea id="addContent" name="newsContent"
									style="width: 100%; height: 400px;"></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 text-center">
								<button type="submit" class="btn btn-primary">
									<i class="fa fa-plus"></i> 添加新闻
								</button>
								<button type="button" class="btn btn-default"
									data-dismiss="modal">关闭</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<jsp:include page="/footer.jsp" />
	<script type="text/javascript" src="../news/js/news-add.js"></script>
	<script type="text/javascript" src="../news/js/news-class.js"></script>
</body>

</html>